package com.jbookshelf.dal.providers;

import com.jbookshelf.dal.entities.Permissions;

import java.util.List;

import org.primefaces.model.DualListModel;

public interface PermissionsDataProvider {
	
	DualListModel<Permissions> getPermissions();
	
	DualListModel<Permissions> getPermissions(int id);

	void setPermission(Permissions permission);

	void setPermissions(List<Permissions> list, int userId);

	void deletePermission(Permissions permission);

	void editPermission(Permissions permission);

}
